package entity;

import com.alibaba.fastjson.annotation.JSONField;

public class Order {
    @JSONField(name = "id")
    private Integer id; //订单编号
    @JSONField(name = "userName")
    private String userName;
    @JSONField(name = "productName")
    private String productName;
    @JSONField(name = "type")
    private String type; //订单类型
    @JSONField(name = "price")
    private Float price;
    @JSONField(name = "status")
    private Integer status; //订单状态

    public Order() {
    }

    public Order(Integer id, String userName, String productName, String type, Float price, Integer status) {
        this.id = id;
        this.userName = userName;
        this.productName = productName;
        this.type = type;
        this.price = price;
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", productName='" + productName + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", status=" + status +
                '}';
    }
}
